package com.aisi.manager.mapper;

import com.aisi.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: shenjianZ
 * @Date: 2024/2/18 9:08
 * @Description:
 */

@Mapper
public interface SysMenuMapper {
    List<SysMenu> findAllMenus();

    void saveSysMenu(SysMenu sysMenu);

    void updateSysMenuById(SysMenu sysMenu);

    int countByParentId(Long id);


    void deleteSysMenuById(Long id);

    List<SysMenu> selectListByUserId(Long userId);

    SysMenu selectParentMenu(Long parentId);
}
